import request from './request';

// 获取文章列表
export const getArticles = (params) => {
  return request.get('articles', params);
};

// 获取文章详情
export const getArticleDetail = (id) => {
  return request.get(`articles/${id}`);
};

export default {
  getArticles,
  getArticleDetail
}; 